/**
 * author:Administrator
 * date:2016/2/25
 * desc:TODO
 */

'use strict';

let Repo = require('./CustomerRepo.js');

class Customer {
  constructor(pojo) {
    pojo = pojo || {};
    this.id = pojo.id;
    this.uId = pojo.uId;              // userid,外部关联id
    this.name = pojo.name;
  }

  * store() {
    return yield Repo.store(this);
  }

}

module.exports = Customer;